package com.gs.service.commodity;

import com.gs.pojo.Commodity;
import com.gs.utils.Page;
import java.util.List;

import org.apache.ibatis.annotations.Param;


public interface CommodityService {
	
	    public int deleteById(Integer id);
		
		
		public int insertAll(Commodity commodityPo);
		
		
		public	Commodity selectById(Integer id);

		
		public int updateById(Commodity commodityPo);
		
		
		//分页需要
		public Page<Commodity> pageFuzzyselect(String commodityName, int commodityTypeID, Page<Commodity> vo);
		
		//无分页的模糊查询  非本派所用
		public List<Commodity> fuzzySelect(String commodityName, int commodityTypeID);

		//ajax 验证是否存在 此商品
	    public int selectYZ(String commodityName);
}
